package com.salary.model;

/**
 * 工资记录类，表示Excel表格中的一行数据
 */
public class SalesRecord {
    private String salesperson; // 业务员
    private double quantity; // 数量
    private double paperProfit; // 吨纸毛利
    private String customerCode; // 客户编码
    private String stockName; // 存货名称
    private String warehouse; // 仓库
    private String salesperson2; // 业务员2
    private double commission; // 提成金额（计算后的结果）
    private double commissionRate; // 提成单价（计算得出）

    public SalesRecord() {
    }

    public SalesRecord(String salesperson, double quantity, double paperProfit,
                       String customerCode, String stockName, String warehouse,
                       String salesperson2) {
        this.salesperson = salesperson;
        this.quantity = quantity;
        this.paperProfit = paperProfit;
        this.customerCode = customerCode;
        this.stockName = stockName;
        this.warehouse = warehouse;
        this.salesperson2 = salesperson2;
    }

    // Getters and Setters
    public String getSalesperson() {
        return salesperson;
    }

    public void setSalesperson(String salesperson) {
        this.salesperson = salesperson;
    }

    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public double getPaperProfit() {
        return paperProfit;
    }

    public void setPaperProfit(double paperProfit) {
        this.paperProfit = paperProfit;
    }

    public String getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public String getWarehouse() {
        return warehouse;
    }

    public void setWarehouse(String warehouse) {
        this.warehouse = warehouse;
    }

    public String getSalesperson2() {
        return salesperson2;
    }

    public void setSalesperson2(String salesperson2) {
        this.salesperson2 = salesperson2;
    }

    public double getCommission() {
        return commission;
    }

    public void setCommission(double commission) {
        this.commission = commission;
    }

    public double getCommissionRate() {
        return commissionRate;
    }

    public void setCommissionRate(double commissionRate) {
        this.commissionRate = commissionRate;
    }

    @Override
    public String toString() {
        return "SalaryRecord{" +
                "salesperson='" + salesperson + '\'' +
                ", quantity=" + quantity +
                ", paperProfit=" + paperProfit +
                ", customerCode='" + customerCode + '\'' +
                ", stockName='" + stockName + '\'' +
                ", warehouse='" + warehouse + '\'' +
                ", salesperson2='" + salesperson2 + '\'' +
                ", commission=" + commission +
                ", commissionRate=" + commissionRate +
                '}';
    }
} 